﻿using System.Threading.Tasks;
namespace Athena.Transport
{
    using Message;

    public delegate Task ReceivedDelegate(ITransportMessageSender transportMessageender, RpcTransportMessage rpcTransportMessage);

    public interface ITransportMessageListener
    {
        event ReceivedDelegate Received;

        Task OnReceived(ITransportMessageSender transportMessageSender, RpcTransportMessage rpcTransportMessage);
    }
}
